import mysqlConfig from './mysqlBase'
import { Sequelize } from 'sequelize'

const { mysqlName, mysqlUserName, mysqlPassword, mysqlIp } = mysqlConfig

const sequelize = new Sequelize(mysqlName, mysqlUserName, mysqlPassword, {
  host: mysqlIp,
  dialect: 'mysql',
  define: {
    timestamps: false,
  },
  logging: false,
})

export { sequelize, Sequelize }
